package com.cn.springcloudwechat.mapper.mapper.find.DelicateAskAnswer;

import com.cn.springcloudwechat.common.mybatis.Page;
import com.cn.springcloudwechat.model.find.DelicateAskAnswer.YmDelicateArticle;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.HashMap;

@Repository
public interface YmDelicateArticleMapper {
    int deleteByPrimaryKey(@Param("delicateArticleId") ArrayList<Long> delicateArticleId, @Param("state") Integer state);

    int insert(YmDelicateArticle record);

    int insertSelective(YmDelicateArticle record);

    YmDelicateArticle selectByPrimaryKey(Long delicateArticleId);

    ArrayList<YmDelicateArticle> selectArticleByMenuId(Long delicateMenuId);

    int updateByPrimaryKeySelective(YmDelicateArticle record);

    int updateByPrimaryKeyWithBLOBs(YmDelicateArticle record);

    int updateByPrimaryKey(YmDelicateArticle record);

    int updateArticle(YmDelicateArticle record);

    ArrayList<YmDelicateArticle> queryArticleAdmin(@Param("ymDelicateArticle") YmDelicateArticle ymDelicateArticle,@Param("page") Page<HashMap<String,Object>> page);
}